//
//  FrendTendViewController.m
//  gosh
//
//  Created by 许小军 on 16/9/22.
//  Copyright © 2016年 wyzc. All rights reserved.
//

#import "FrendTendViewController.h"
#import "XXJLoginViewController.h"
@interface FrendTendViewController ()

@end

@implementation FrendTendViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //self.view.backgroundColor=[UIColor yellowColor];
    
    [self setUpNavBtn];
}

-(void)setUpNavBtn
{
    UIButton * leftBtn=[UIButton buttonWithType:UIButtonTypeCustom];
    [leftBtn setImage:[UIImage imageNamed:@"friendsRecommentIcon"] forState:UIControlStateNormal];
    [leftBtn setImage:[UIImage imageNamed:@"friendsRecommentIcon-click"] forState:UIControlStateHighlighted];
    [leftBtn sizeToFit];
    [leftBtn addTarget:self action:@selector(leftBtnClick) forControlEvents:UIControlEventTouchUpInside];
    UIView * view=[[UIView alloc]initWithFrame:leftBtn.bounds];
    [view addSubview:leftBtn];
    self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc]initWithCustomView:view];
    
    self.navigationItem.title=@"我的关注";
    
    
}

-(void)leftBtnClick
{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)loginClick:(UIButton *)sender {
    
    XXJLoginViewController * login=[[XXJLoginViewController alloc]init];
    //[self presentModalViewController:login animated:YES];
    [self presentViewController:login animated:YES completion:nil];
}





/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
